package com.ishanggang.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ishanggang.entity.IsgICDictShopInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 联合利华
 */
@DS("quickBi")
public interface IsgICDictStoreInfoMapper {
    IsgICDictShopInfo selectById(@Param(value = "id") Long id);

    IsgICDictShopInfo selectKaByBusCode(@Param(value = "busCode") String busCode);

    Long selectMaxId();

    /**
     * 标记为重复门店
     * @param id
     * @param matchBusCode
     * @param distance
     * @return
     */
    int updateSameShopFlag(@Param(value = "id") Long id,
                           @Param(value = "matchBusCode") String matchBusCode,
                           @Param(value = "distance") double distance);
}
